import datetime
from peewee import *

db = SqliteDatabase("proxy.db")

class Proxy(Model):
    address = CharField()
    vps = CharField()
    datetime = DateTimeField(default=datetime.datetime.now)

    class Meta:
        database = db

    def __repr__(self):
        return self.address

if __name__ == '__main__':
    Proxy.create_table()
    #proxy = Proxy(address='localhost', vps='test')
    #proxy.save()
